import Cookies from 'js-cookie'
import Role from "../views/ums/role/index.vue";

const TokenKey = 'loginToken'

const IdentityKey = 'loginIdentity'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}


export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getIdentity() {
  return Cookies.get(IdentityKey)
}

export function setIdentity(identity) {
  return Cookies.set(IdentityKey, identity)
}


export function removeIdentity() {
  return Cookies.remove(IdentityKey)
}

